<?php
/**
 * Created by PhpStorm.
 * User: divya
 * Date: 2018/8/3
 * Time: 上午11:32
 */

namespace app\api\controller;

use app\api\service\Token as TokenServer;
use think\Controller;

class BaseController extends Controller
{
//    用户和管理员都能使用的
    protected function checkPrimaryScope(){
        TokenServer::needPrimaryScope();
    }
    /**
     *只有用户
     *
     */
    protected function checkExclusiveScope(){
        TokenServer::needExclusiveScope();
    }

}